package com.bawei.yangzongcai___chenmei.BlankFragment.Blanck2;


import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import com.bawei.yangzongcai___chenmei.Adpter.FragementTwo;
import com.bawei.yangzongcai___chenmei.BlankFragment.BannerLunboImg.BannerLunBoImag001;
import com.bawei.yangzongcai___chenmei.BlankFragment.BannerLunboImg.BannerLunBoImag002;
import com.bawei.yangzongcai___chenmei.BlankFragment.BannerLunboImg.BannerLunBoImag003;
import com.bawei.yangzongcai___chenmei.MVC.BsaeFragment;
import com.bawei.yangzongcai___chenmei.R;
import com.google.android.material.tabs.TabLayout;

import java.util.ArrayList;


public class BlankFragmentQAQ1 extends BsaeFragment {


    private TabLayout blanck2qaq1Table;
    private ViewPager blanck2qaq1Vp;

    @Override
    public int bandLayout() {
        return R.layout.fragment_blank_fragment_qaq1;
    }

    @Override
    public void initView() {

        blanck2qaq1Table = findbandid(R.id.blanck2qaq1_table);
        blanck2qaq1Vp = findbandid(R.id.blanck2qaq1_vp);
    }

    @Override
    public void initDate() {
        ArrayList<Fragment> fragments = new ArrayList<>();
        fragments.add(new BannerLunBoImag001());
        fragments.add(new BannerLunBoImag002());
        fragments.add(new BannerLunBoImag003());
        ArrayList<String> strings = new ArrayList<>();
        strings.add("汉鼎旗舰店");
        strings.add("龙王恨旗舰店");
        strings.add("武汉天元旗舰店");
        FragementTwo fragementTwo = new FragementTwo(getChildFragmentManager(), fragments, strings);
        blanck2qaq1Vp.setAdapter(fragementTwo);
        blanck2qaq1Table.setupWithViewPager(blanck2qaq1Vp);
    }
}
